Enable cloud serial comms to individual devices #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've implemented the workaround discussed in #30, as described below. With a corresponding change to OakTerm, this works correctly for my Oaks. You can test this modified OakTerm here: https://rawgit.com/kh90909/OakTerm/send-to-specific-devices/index.html. It's still in a feature branch for now, but hope to merge it into master tomorrow, along with lots more progress by @emcniece and myself.
Commit message
The Particle Cloud API and ParticleJS do not appear to allow publishing events to specific devices. This change works around that limitation by having the Oaks listen to
/oak/device/stdin/:deviceid
and/oak/device/reset/:deviceid
so that they can be individually addressed.The Oaks are also still listening to
/oak/device/stdin
and/oak/device/reset
so that all of one's Oaks can be addressed simultaneously if desired.